package com.daJiao.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.daJiao.domain.PageParam;
import com.daJiao.domain.RoleBindResource;
import com.daJiao.domain.RoleBindUser;
import com.daJiao.domain.SecurityUserDetails;
import com.daJiao.entity.SysRole;

import java.util.List;


/**
 * <p>Title:      RoleService. </p>
 * <p>Description 角色 </p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company:    医百科技有限公司 </p>
 *
 * @author <a href="yangwensheng@100doc.com.cn"/>杨文生</a>
 * @since 2021 /12/16 14:50
 */
public interface SysRoleService extends IService<SysRole> {

    int saveRole(SysRole role);

    int updateRole(SysRole role);

    int delete(String id, SecurityUserDetails securityUser);

    Page<SysRole> listPage(PageParam<SysRole> pageParam);

    void roleBindResource(RoleBindResource roleBindResource, SecurityUserDetails securityUser);

    List<String> getBindResourceByRoleId(String roleId);

    void roleBindUser(RoleBindUser roleBindUser, SecurityUserDetails securityUser);

    List<String> getBindUserByRoleId(String roleId);
}